﻿using System;

namespace Framework.Data
{
    public interface IUnitOfWork : IDisposable
    {
        bool IsInTransaction { get; }

        //void BeginTransaction();

        //void BeginTransaction(IsolationLevel isolationLevel);

        //void RollBackTransaction(); //自动回滚

        void CommitTransaction();
    }
}
